<?php

session_start();

require_once "../conn.php";

if(isset($s1))
{
	$sql = "SELECT * FROM job_employer_info WHERE ename = '$ename' AND epass = '$epass'";
	$result = mysql_query($sql);
	if (mysql_num_rows($result) == 1)
	{
		$_SESSION[ename] = $ename;
		$_SESSION[epass] = $epass;		
		header("location:EmployerSearch.php");
		exit();
	}
}


include_once "../main.php";
?>

	<center>
	<br><br>
	  <span class=HeaderClass>Employers  Login</span>

  <p class=BlackText>You must log in to access this area of the site.<br> If you are
     not a registered user, <a href="employer_registration.php" class=TNA>click here</a> to sign up.</p>
  <p><form method="post" action="login.php">
<table cellpadding="0" cellspacing="5" class=BlackText>
<tr>
	<td align=left>Username:</td>
	<td align="right"> <input type="text" name="ename" size="12" maxlength=10 style="width:120px"></td>
</tr>

<tr>
	<td align=left>Password:</td>
	<td align="right"><input type="password" name="epass" SIZE="12" maxlength=10 style="width:120px"></td>
</tr>

<tr>
	<td>&nbsp;</td>
	<td align="right"><input type="submit" value=" Login " style="font-family:verdana; font-weight:bold; color:#993300; background-color:white" name=s1></td>
</tr>

<tr><td colspan=2 align=left> <a class=TNA href=forgot.php> Forgot your username/password? </a></td>
</tr>

</table>
  </form></p>
  </center>

<?
include_once("../footer.php");
?>

